package com.dudu.domain;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Room {
    private Integer id;

    private Integer typeid;

    private Integer buildingid;

    private String name;

    private Integer floorid;

    private String area;

    private String department;

    private String admintor;

    private String usenumber;

    private Date usetime;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date endusetime;

    private Integer inuse;
    
    private Roomtype roomtype;
    private Building building ;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }





    public Integer getTypeid() {
		return typeid;
	}

	public void setTypeid(Integer typeid) {
		this.typeid = typeid;
	}

	public Integer getBuildingid() {
        return buildingid;
    }

    public void setBuildingid(Integer buidingid) {
        this.buildingid = buidingid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getFloorid() {
        return floorid;
    }

    public void setFloorid(Integer floorid) {
        this.floorid = floorid;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area == null ? null : area.trim();
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department == null ? null : department.trim();
    }

    public String getAdmintor() {
        return admintor;
    }

    public void setAdmintor(String admintor) {
        this.admintor = admintor == null ? null : admintor.trim();
    }

    public String getUsenumber() {
        return usenumber;
    }

    public void setUsenumber(String usenumber) {
        this.usenumber = usenumber == null ? null : usenumber.trim();
    }

    public Date getUsetime() {
        return usetime;
    }

    public void setUsetime(Date usetime) {
        this.usetime = usetime;
    }

    public Date getEndusetime() {
        return endusetime;
    }

    public void setEndusetime(Date endusetime) {
        this.endusetime = endusetime;
    }

    public Integer getInuse() {
        return inuse;
    }

    public void setInuse(Integer inuse) {
        this.inuse = inuse;
    }

	public Roomtype getRoomtype() {
		return roomtype;
	}

	public void setRoomtype(Roomtype roomtype) {
		this.roomtype = roomtype;
	}

	public Building getBuilding() {
		return building;
	}

	public void setBuilding(Building building) {
		this.building = building;
	}
    
}